﻿using Terraria.ID;
using Terraria;
using Terraria.ModLoader;
using EAS.Common.Players;

namespace EAS.Content.Items
{
    [AutoloadEquip(new EquipType[]
    {
        EquipType.Shield
    })]
    public class ForceShield : ModItem
    {
        public override void SetStaticDefaults()
        {
            Item.ResearchUnlockCount = 1;
        }
        public override void SetDefaults()
        {
            Item.width = 18;
            Item.height = 18;
            Item.accessory = true;
            Item.value = 12400;
            Item.rare = ItemRarityID.Master;
            Item.master = true;
        }
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            player.endurance -= 0.05f;
            player.GetModPlayer<AccPlayer>().wearingForceField = true;
        }
    }
}
